import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'

// 获取本地存储的token
export function getToken() {
  return Cookies.get(TokenKey)
}

// 将token放到本地存储中
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

// 删除本地存储token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
